﻿using D.Wx.Entities;
using FreeSql.DataAnnotations;
using System.ComponentModel;

namespace D.Wx.Entities
{
    /// <summary>
    /// 管理员模型
    /// </summary>
    [Table(Name = "SysAdminEntity")]
    [Description("管理员")]
    public class SysAdminEntity : BaseEntity
    {
        /// <summary>
        /// 用户工号
        /// </summary>
        public string? UUID { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string? Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string? Pwd { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string? NickName { get; set; }

        /// <summary>
        /// 微信账户
        /// </summary>
        public string? WeiXin { get; set; }


        /// <summary>
        /// OpenId，要跟客户的一一对应
        /// </summary>
        public string? WeiXinOpenId { get; set; }

        /// <summary>
        /// 用户组ID
        /// </summary>
        public string? UserGroupId { get; set; }

        /// <summary>
        /// 默认所属角色
        /// </summary>
        public string? RoleId { get; set; }

        /// <summary>
        /// 上次登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }

        /// <summary>
        /// 上次登录IP地址
        /// </summary>
        public string? LastLoginIp { get; set; }

        /// <summary>
        /// 登录总次数
        /// </summary>
        public int? LoginTotalCount { get; set; }

        /// <summary>
        /// 分配次数
        /// </summary>
        public int? AssignTotalCount { get; set; }

        /// <summary>
        /// 是否推送信息
        /// </summary>
        public bool? IsPush { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Column(DbType = "varchar(500)")]
        public string? Descption { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool? Status { get; set; }
    }
}
